package com.liu.pojo;

import org.apache.catalina.Context;
import org.apache.catalina.session.StandardSession;
import org.springframework.util.ObjectUtils;

import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import javax.websocket.Session;
import java.io.*;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
import java.util.stream.Collectors;

public class test extends Thread{


    public static void main(String[] args) throws IOException{
        List<Integer> list = new ArrayList<>();
        list.add(123);
        list.add(456);
        list.add(123);
        System.out.println(list);
        List<Integer> collect = list.stream().filter((s) -> (s > 124)).collect(Collectors.toList());
        BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter("c.txt"));
        bufferedWriter.flush();

        

        System.out.println(collect);

    }
}


